import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm'

@Entity({name: "pub_template"})
export class PubTemplateEntity {
  @PrimaryGeneratedColumn()
  id: number

  @Column('int', {default: 0})
  uid: number

  @Column('varchar', {length: 255, nullable: true})
  title: string

  @Column('text', {nullable: true})
  desc: string

  @Column('varchar', {nullable: true})
  bili_type: string

  @Column('varchar', {nullable: true})
  ks_type: string

  @Column("text", {nullable: true})
  common_tag: string

  @Column("text", {nullable: true})
  dy_tag: string

  @Column('int', {default: 0})
  status: number

  @CreateDateColumn({type: 'datetime'})
  createAt: Date

  @UpdateDateColumn({type: 'datetime'})
  updateAt: Date
}